package com.chaos.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.AutoIdModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

/**
 * @author Jacky.Cui
 * @since 2024-12-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rbac_menu")
@ApiModel(value = "RbacMenu实体", description = "菜单")
public class RbacMenu extends AutoIdModel {


    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;


    @ApiModelProperty(value = "路由路径 /根菜单")
    @TableField("path")
    private String path;


    @ApiModelProperty(value = "路由名称")
    @TableField("name")
    private String name;


    @ApiModelProperty(value = "名称")
    @TableField("cn_name")
    private String cnName;


    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private Long parentId;


    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;


}
